from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains

dirver_path = r"C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe"
driver = webdriver.Chrome(executable_path=dirver_path)
driver.get("https://www.baidu.com")

for cookie in driver.get_cookies():
    print(cookie)

# print("*"*30)
# print(driver.get_cookie('PSTM'))
# print("*"*30)
# driver.delete_cookie('PSTM')
# print("*"*30)
# print(driver.get_cookie('PSTM'))
driver.delete_all_cookies()
print("*"*30)
for cookie in driver.get_cookies():
    print(cookie)



